<template>
  <Address ref="ContactAdress" :customerId="id" />
</template>
<script lang="ts">
import { Component, Vue, Prop, Ref } from 'vue-property-decorator'
import Address from '@/views/newCustomer/components/contactAdress.vue'
@Component({
  name: 'CustomerDynamic',
  components: { Address }
})
export default class CustomerDynamic extends Vue {
  @Ref() private readonly ContactAdress
  @Prop() private id

  public init () {
    this.$nextTick(() => {
      this.ContactAdress.getData()
    })
  }

  private mounted () {
    this.init()
  }
}
</script>
<style lang="stylus" scoped>
//更改滚动条样式
>>> .resize-table .pages
  display block
  overflow auto
</style>
